#ifndef CLIENTCONMANAGER_H
#define CLIENTCONMANAGER_H

#include <QObject>
#include <QVector>
#include <QString>
#include <QTcpSocket>
#include "clientserver.h"
class ClientConManager : public QObject
{
    Q_OBJECT

public:
    ///create a new connection to server
    bool connectToServer(QString cStrIp, int iPort);
    ///disconnect from all server
    bool disconnectFromAllServers();
    ///reconnect all server
    bool reconnectAllServers();
    ///clear all server
    bool clearAllServers();

    ///servers
    QVector<ClientServer*> m_aServers;

private:
    explicit ClientConManager(QObject *parent = 0);






signals:

public slots:

//singleton
private:
    static ClientConManager *_instance;
public:
    static ClientConManager* getInstance();

};

#endif // CLIENTCONMANAGER_H
